package com.jie.client.service.ui.view.item;

import javafx.beans.property.SimpleStringProperty;

/**
 * @author XieZhiJie
 * @date 2022/04/29 15:51
 */
public class UserItem {

    private final Integer userId;

    private final String userAccount;

    private final String username;

    private final SimpleStringProperty userIdent;

    public UserItem(Integer userId, String userAccount, String username) {
        this.userId = userId;
        this.userIdent = new SimpleStringProperty(username + "(" + userAccount + ")");
        this.userAccount = userAccount;
        this.username = username;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public String getUsername() {
        return username;
    }

    public String getUserIdent() {
        return userIdent.get();
    }

    public SimpleStringProperty userIdentProperty() {
        return userIdent;
    }

    public void setUserIdent(String userIdent) {
        this.userIdent.set(userIdent);
    }
}
